package com.zf.yichat.mapper;

import com.zf.yichat.base.FsMapper;
import com.zf.yichat.dto.PacketReceiveInfoDto;
import com.zf.yichat.dto.PacketSaleIndexDto;
import com.zf.yichat.dto.PacketSendInfoDto;
import com.zf.yichat.model.PacketSale;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PacketSaleMapper extends FsMapper<PacketSale> {

    void addUserCount(@Param("packetId") Long packetId);

    List<PacketSaleIndexDto> selectSuccessList(@Param("userId") Long userId, @Param("packetId") Long packetId, @Param("sort") Long sort);

    List<PacketSaleIndexDto> selectDefaultList(@Param("userId") Long userId, @Param("sort") Long sort);

    List<PacketSaleIndexDto> selectSaleSendList(@Param("userId") Long userId);

    List<PacketSaleIndexDto> selectSaleReceiveList(@Param("userId") Long userId);

    List<PacketSaleIndexDto> selectSaleReceiveMemberList(@Param("packetId") Long packetId);

    PacketSendInfoDto selectSaleSendCount(@Param("userId") Long userId);

    PacketReceiveInfoDto selectSaleReceiveCount(@Param("userId") Long userId);

}